ig.module(
	'game.entities.base.pickableType'
)
.requires(
	'impact.entity',
        'game.entities.base.entityBase'
)
.defines(function()
{
    EntityPickableType = EntityEntityBase.extend(
    {
	collides: ig.Entity.COLLIDES.ACTIVE,
	pickType: 'none',
        picked: false,        
        pickable: true,
	
        update: function()
        {
            this.parent();
            
            if (this.isClicked() == true && this.pickable == true)
            {
                this.onPick();
            }
        },
        
        draw: function()
        {
            this.parent();
        },
        
        onPick: function()
        {
            if (this.pickType == ig.global.typeToPick)
            {
                this.picked = true;                
            }
	    
	    this.kill();	    
        }
    });
});